package sf;

import db.domain.User;
import lombok.extern.slf4j.Slf4j;
import org.smallframework.spring.DaoTemplate;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;

//@Order(Ordered.HIGHEST_PRECEDENCE)
@Slf4j
//@Service
public class AA implements InitializingBean {
    @Autowired
    private DaoTemplate daoTemplate;

    @Override
    public void afterPropertiesSet() throws Exception {
        DaoTemplate dt = this.daoTemplate;
        User q = new User();
        log.info(dt.selectList(q) + "");
    }
}
